<!DOCTYPE html>
<html lang="cn" xmlns:th="http://www.thymeleaf.org">
<head>
    <meta charset="UTF-8">
    <title>个人博客</title>
    <!--自适应-->
    <meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">

    <link th:href="@{/css/bootstrap.min.css}" rel="stylesheet">
    <link th:href="@{/css/signin.css}" rel="stylesheet">
</head>
<body class="text-center">

<form class="form-signin" th:action="@{/admin/login}" method="post">
    <img class="mb-4" th:src="@{/img/admin_login.svg}" alt="" width="72" height="72">
    <h1 class="h3 mb-3 font-weight-normal" th:text="#{login.tip}"> 请登录 </h1>
    <p style="color: red" th:text="${session.errorMsg}"></p>
    <label class="sr-only">Username</label>
    <input type="text" class="form-control" name="loginUsername" th:placeholder="#{login.username}" required autofocus>
    <label class="sr-only">Password</label>
    <input type="password" class="form-control" name="loginPassword" th:placeholder="#{login.password}" required>
    <div class="checkbox mb-3">
    <!--    <label>-->
    <!--        <input type="checkbox" th:text="#{login.remember}">-->
    <!--    </label>-->
    </div>
    <button class="btn btn-lg btn-primary btn-block" type="submit" th:text="#{login.btn}"> 登 录 </button>
    <p class="mt-5 mb-3 text-muted">© 2021-2021</p>
    <a class="btn btn-sm" th:href="@{/admin/login(lang='zh_CN')}">中文</a>
    <a class="btn btn-sm" th:href="@{/admin/login(lang='en_US')}">English</a>
</form>

</body>
</html>




